<?php
require $this->__RAD__ . 'include/head.php';
?>
<body>
<?php require $this->__RAD__ . 'include/header.php';?>
<?php
if ($this->aryCategoryDataView[$this->rootId]['landscape'] != ''):
    echo '<div class="ny-banner" style="background:url(/uploads/pics/l/'.$this->aryCategoryDataView[$this->rootId]['landscape'].') no-repeat top center;background-attachment:fixed;">';
else:
    echo '<div class="ny-banner" style="background:url('.$this->__STATIC__.'images/banner07.jpg) no-repeat top center;background-attachment:fixed;">';
endif;
?>
<div class="wenz">
    <h2 class="h2 TwCenMT"><?= $this->rootName ?></h2>
    <!--        <hr>-->
    <!--        <h3><= $this->rootName ?></h3>-->
</div>
</div>
<div class="sub-nav">
    <div class="wrapper">
        <a class="<?= $this->rootId == $this->categoryId ? 'cur':''?>" href="/en/news">All</a>
        <?php
        foreach ($this->aryCategoryDataView[$this->rootId] as $_k1 => $_v1):
            if ($_k1 > 0):
                $_tmpLink = App\Tools\UrlHelper::getTypeUrl($this->aryCategoryDataView, $_v1['id_tree']);
                //去除最后一个斜杠
                $_tmpLink = rtrim($_tmpLink, "/");
                $_sltMenu = App\Tools\Auxi::compareSelect($_k1, $this->categoryId, 'cur', '');
                ?>
                <a <?= $_sltMenu ?> href="<?= $_tmpLink ?>"><?= $_v1['category_name'] ?></a>
                <?php
            endif;
        endforeach;
        ?>
        <a href="/message-board" class="hqgd">More</a>
        <div class="email-div">
            <?php require $this->__RAD__ . 'include/email.php';?>
        </div>
    </div>
</div>

<div class="news">
    <div class="wrapper">
        <ul>
            <?php
            if ($this->currentListRs):
                $_i = 0;
                foreach ($this->currentListRs as $_v1):
                    $_tmpLink = App\Tools\UrlHelper::getPageUrl($_v1);
                    ?>
                    <li class="clearfix">
                        <div class="pic"><a href="<?= $_tmpLink ?>"><img src="<?= $this->__CDN__ . 'pics/l/' . $_v1->cover ?>"></a></div>
                        <div class="wenz pos_re">
                            <a href="<?= $_tmpLink ?>"></a>
                            <div class="date">
                                <span class="TwCenMT"><?= date("m", $_v1->add_date) ?><small>/</small><?= date("d", $_v1->add_date) ?></span>
                                <?= date("Y", $_v1->add_date) ?>
                            </div>
                            <h3 class="textover"><?= $_v1->title ?></h3>
                            <p class="line3 fontp"><?= App\Tools\Html::getLenStr($_v1->synopsis, 120) ?></p>
                            <span class="jtm"></span>
                        </div>
                    </li>

                    <?php
                    $_i++;
                endforeach;
            endif;
            ?>
        </ul>
        <div class="page">
            <?php
            require $this->__RAD__ . 'include/getPages.php';
            ?>
        </div>
    </div>
</div>
<?php require $this->__RAD__ . 'include/footer.php';?>
</body>
</html>
<script type="text/javascript" src="<?= $this->__STATIC__?>js/common.js"></script>
